//===============================================================================
// Microsoft patterns & practices
// Web Client Software Factory
//-------------------------------------------------------------------------------
// Copyright (C) Microsoft Corporation.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//-------------------------------------------------------------------------------
// The example companies, organizations, products, domain names,
// e-mail addresses, logos, people, places, and events depicted
// herein are fictitious.  No association with any real company,
// organization, product, domain name, email address, logo, person,
// places, or events is intended or should be inferred.
//===============================================================================
using System;
using System.Runtime.Serialization;

namespace WCSFContrib.PageFlow
{
	/// <summary>
	/// An <see cref="Exception"/> used when a PageFlow cannot complete a task.
	/// </summary>
	[Serializable]
	public class PageFlowException : Exception
	{
		/// <summary>
		/// Creates an instance of a PageFlowException.
		/// </summary>
		public PageFlowException()
			: base()
		{
		}

		/// <summary>
		/// Creates an instance of a PageFlowException with the specified message.
		/// </summary>
		/// <param name="message">The message to set on the <see cref="Exception"/>.</param>
		public PageFlowException(string message)
			: base(message)
		{
		}

		/// <summary>
		/// Creates an instance of a PageFlowException with the specified message and inner <see cref="Exception"/>.
		/// </summary>
		/// <param name="message">The message to set on the <see cref="Exception"/>.</param>
		/// <param name="innerException">An <see cref="Exception"/> to wrap in the new instance.</param>
		public PageFlowException(string message, Exception innerException)
			: base(message, innerException)
		{
		}

		/// <summary>
		/// Creates an instance of a PageFlowException with the specified message and inner <see cref="Exception"/>.
		/// </summary>
		/// <param name="info">Serialization information.</param>
		/// <param name="context">A streaming context.</param>
		protected PageFlowException(SerializationInfo info, StreamingContext context)
            : base(info, context)
		{
		}
	}
}
